import React, { Component } from "react";

export default class App extends Component {
  render() {
    return (
      <div>
        <h2>05</h2>
        <input type="text" placeholder="输入代办事项" />
        <button
          onClick={() => {
            console.log("添加代办事项1");
          }}
        >
          Add1
        </button>
        <button onClick={this.handleClick2}>Add2</button>
        <button onClick={this.handleClick3}>Add3</button>
        <button
          onClick={() => {
            this.handleClick4();
          }}
        >
          Add3
        </button>
      </div>
    );
  }

  handleClick2() {
    console.log("添加代办事项2");
  }

  handleClick3 = () => {
    console.log("添加代办事项3");
  };

  handleClick4 = () => {
    console.log("添加代办事项4");
  };
}
